package com.kkd.springcloud.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author 14587
 * @date 2021/1/16 12:25
 */
@Configuration
public class DeptConsumerConfig {
    @Bean
    @LoadBalanced//ribbon的负载均衡
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
